<template>
	<view class="content">
		<navbar></navbar>
		<tab :list="labels" @tab="tab"></tab>
		<view v-for="item in 100">
			{{item}} 行
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				title: 'Hello',
				labels:[]
			}
		},
		onLoad() {
			this.queryLabels()
		},
		methods: {
			tab(item,index){
				console.log(item,index);
			}
			,
			queryLabels(){
				this.$api.get_labels({
					name:"get_labels"
				}).then((res) => {
					 this.labels = res.data
				})
			}
		}
	}
</script>

<style>
	
</style>
